package domain

import (
	"vrcm/src/vrcm/common/models"
)

type CertificateDomain struct {
	models.Model

	TenantId      string `json:"tenant_id" gorm:"type:varchar(50);comment:租户"`
	CertificateId int    `json:"certificate_id" gorm:"type:bigint;comment:CertificateId"`
	DomainId      int    `json:"domain_id" gorm:"type:bigint;comment:DomainId"`
	models.ModelTime
	models.ControlBy
}

func (CertificateDomain) TableName() string {
	return "certificate_domain"
}

func (e *CertificateDomain) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *CertificateDomain) GetId() interface{} {
	return e.Id
}
